package org.csmzxy233405;

import java.time.LocalDateTime;
public class example13 {
    public static void main(String[] args){
        LocalDateTime now = LocalDateTime.now();
        System.out.println("系统当前日期时间为" + now);
        System.out.println("LocalDateTime对象转换为相应的LocalDate对象," + "结果为" + now.toLocalDate());
        System.out.println("LocalDateTime对象转换为相应的LocalTime对象," + "结果为" + now.toLocalTime());
    }
}
